<template>
    <div>
        <h2>从{{count}}开始 , 电影的总长度{{movieList.length}}</h2>
        <button @click="add">加一点</button>
        <button @click="getMovieListHandel">点击获取电影</button>
        <ul>
            <li v-for=" item in movieList" :key="item.tvId">{{item.albumName}}</li>
        </ul>

    </div>
</template>

<script>
import { mapActions, mapMutations, mapState } from 'vuex'
    export default {
        name : 'Footer',
        computed:{
            ...mapState({count : "count" , movieList : "movieList" , }),


        },
        methods:{
            ...mapMutations(["add"]),

            ...mapActions(["getMovieListHandel"]),
        }
    }
</script>

<style scoped>

</style>